package com.copm.ifm.servers.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copm.ifm.base.api.pojo.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 租户员工表
 *
 * @author zzf
 * @since 2020-12-22
 */
@Getter
@Setter
@ToString
@TableName("sys_staff")
@ApiModel("租户员工表")
public class SysStaff extends BasePO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("租户id")
    private Long tenantId;

    @ApiModelProperty("类型 [1普通员工 2项目管理员 3租户管理员 4超级管理员]")
    private Integer type;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("登录名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机")
    private String phone;

    @ApiModelProperty("语言 [1简体中文 2繁体中文 3英文]")
    private Integer language;

    @ApiModelProperty("是否有效(0无效，1有效)")
    private Integer enabled;

    @ApiModelProperty("主题id")
    private Long themeId;

    @ApiModelProperty("默认项目")
    private Long defaultProjectId;

    @ApiModelProperty("标准工时费用")
    private BigDecimal stdCost;

    @ApiModelProperty("是否开启消息弹框和提示音")
    private Integer openedMessage;

    @ApiModelProperty("1 正常 2过期 3禁用")
    private Integer status;

}
